﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

namespace Defero.Model
{
    public class Sale : PersistibleObject
    {
        #region Fields
        public DateTime Date { get; set; }
        public Employee Employee { get; set; }
        public Customer Customer { get; set; }
        public decimal Total { get; set; }
        #endregion
        #region Collections
        ObservableCollection<SaleRow> details;
        public ICollection<SaleRow> Details 
        { 
            get { return details; }
        }
        #endregion
        #region Constructors
        public Sale() 
        {
            details = new ObservableCollection<SaleRow>();
        }
        #endregion
    }
}
